package com.foreverwin.jzymes.framework.quartz.service.impl;

import com.foreverwin.jzymes.framework.quartz.domain.SysJob;
import com.foreverwin.jzymes.framework.quartz.mapper.SysJobMapper;
import com.foreverwin.jzymes.framework.quartz.service.ISysJobService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 点检任务维护 服务层实现
 * 
 * @author ervin
 * @date 2019-03-11
 */
@Service
public class SysJobServiceImpl implements ISysJobService
{
	@Autowired
	private SysJobMapper sysJobMapper;

	/**
     * 查询点检任务维护信息
     * 
     * @param handle 点检任务维护ID
     * @return 点检任务维护信息
     */
    @Override
	public SysJob selectSysJobById(String handle)
	{
	    return sysJobMapper.selectSysJobById(handle);
	}
	
	/**
     * 查询点检任务维护列表
     * 
     * @param sysJob 点检任务维护信息
     * @return 点检任务维护集合
     */
	@Override
	public List<SysJob> selectSysJobList(SysJob sysJob)
	{
	    return sysJobMapper.selectSysJobList(sysJob);
	}
	
    /**
     * 新增点检任务维护
     * 
     * @param sysJob 点检任务维护信息
     * @return 结果
     */
	@Override
	public int insertSysJob(SysJob sysJob)
	{
	    return sysJobMapper.insertSysJob(sysJob);
	}
	
	/**
     * 修改点检任务维护
     * 
     * @param sysJob 点检任务维护信息
     * @return 结果
     */
	@Override
	public int updateSysJob(SysJob sysJob)
	{
	    return sysJobMapper.updateSysJob(sysJob);
	}

	/**
     * 删除点检任务维护对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteSysJobByIds(String ids)
	{
		return sysJobMapper.deleteSysJobByIds(ids.split(","));
	}
	
}
